//
//  YYRPopupView.h
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/8.
//  Copyright © 2019 优房网. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YYRPopupAction;
NS_ASSUME_NONNULL_BEGIN

@interface YYRPopupView : UIView

/// 保存当前的视图控制器，用来dismiss
@property (nonatomic, weak, nullable) UIViewController *controller;

/**
 初始化 AlertView

 @param title 标题
 @param message 消息
 @return
 */
- (_Nonnull instancetype)initWithTitle:(NSString * _Nullable)title message:(NSString * _Nullable)message;

/**
 添加一个 action

 @param action action
 */
- (void)addAction:(YYRPopupAction * _Nonnull)action;

@end

NS_ASSUME_NONNULL_END
